package com.finance.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/16
 * @Description: 分配记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "record_allocation")
public class RecordAllocation implements Serializable {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 标识
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField(fill = FieldFill.INSERT)
    private String code;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 分配公司名称
     */
    private String name;

    /**
     * 分配金额
     */
    private Double allocationAmount;

    /**
     * 申请贷款标识
     */
    private String applyForLoanCode;



    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_NAME = "name";

    public static final String COL_ALLOCATION_AMOUNT = "allocation_amount";

    public static final String COL_APPLY_FOR_LOAN_CODE = "apply_for_loan_code";

}